import '../debug_interface.dart';

class DebugProxy {
  DebugProxy._();

  static DebugProxy _instance;

  DebugInterface _debugInterface;

  factory DebugProxy(){
    return _instance ??= DebugProxy._();
  }

  void injectDebugImpl(DebugInterface debugImpl) {
    _debugInterface = debugImpl;
  }

  void urlSwitch(String env) {
    _debugInterface?.urlSwitch(env);
  }

  void netStatusSwitch(bool isOpen) {
    _debugInterface?.netStatusSwitch(isOpen);
  }


}